﻿<hibernate-mapping xmlns="urn:nhibernate-mapping-2.2" default-access="property" default-lazy="true" namespace="Cms.Domain" assembly="Cms.Domain">
  <class name="PluginTemplateLiteral" table="cmsPluginTemplateLiteral">
    <cache usage="read-write" />
    <id name="ID" type="System.Int32" unsaved-value="0">
      <column name="ID" />
      <generator class="identity" />
    </id>
    <property name="ControlID" type="System.String">
      <column name="ControlID" not-null="true" />
    </property>
    <map name="Translations" table="cmsPluginTemplateLiteralTranslation" mutable="true">
      <cache usage="read-write" />
      <key>
        <column name="LiteralID" />
      </key>
      <index type="System.Int32">
        <column name="LocaleID" />
      </index>
      <composite-element class="PluginTemplateLiteralTranslation">
        <property name="Html" type="System.String">
          <column name="Html" length="1000000" not-null="true" />
        </property>
      </composite-element>
    </map>
    <many-to-one class="PluginTemplate" name="Template">
      <column name="TemplateID" not-null="true" />
    </many-to-one>
  </class>
</hibernate-mapping>